<template>
    <div class="section-header">
        <span class="section-title">{{ title }}</span>
        <ul class="section-nav">
            <li v-for="(item,idx) in nav" :key="idx" class="section-nav-item" @mouseenter="onMouseEnter(idx)">
                <a href="/">{{ item }}</a>
            </li>
        </ul>
    </div>
</template>

<script>
    export default {
        props: {
            nav: {
                type: Array,
                default() {
                    return []
                }
            },
            title: {
                type: String
            }
        },
        methods: {
            onMouseEnter(idx) {
                console.log(idx)
            }
        }
    }
</script>

<style scoped>

</style>